import request2 from '@/utils/request2'
import { unionApiUrl } from '../config'
// let unionApiUrl = 'union-producer-server'

export default {
    //导入
    insertStudioList(data, params) {
        return request2({
            url: unionApiUrl + '/studio/insertStudioList', method: 'post', params, data
        })
    },
    //主要成员导入
    insertMainMember(data, params) {
        return request2({
            url: unionApiUrl + '/studio/insertMainMember', method: 'post', params, data
        })
    },
    // /studio/getPageStudio
    // 分页查询
    getPageStudio(data, params) {
        return request2({
            url: unionApiUrl + '/studio/getPageStudio', method: 'post', params, data
        })
    },
    // /studio/deleteByPrimaryKey
    // 删除创新工作室
    deleteByPrimaryKey(params) {
        return request2({
            url: unionApiUrl + '/studio/deleteByPrimaryKey', method: 'post', params
        })
    },
    // 添加创新工作室
    insertSelective(data, params) {
        return request2({
            url: unionApiUrl + '/studio/insertSelective', method: 'post', params, data
        })
    },
    // 修改创新工作室
    updateByPrimaryKeySelective(data, params) {
        return request2({
            url: unionApiUrl + '/studio/updateByPrimaryKeySelective', method: 'post', params, data
        })
    },
    // 获取创新工作室信息
    getStudioById(data, params) {
        return request2({
            url: unionApiUrl + '/studio/getStudioById', method: 'get', params, data
        })
    }
}
